import Vue from 'vue'
import App from './App.vue'
import Vant from 'vant';
import VueRouter from "vue-router"
import 'vant/lib/index.css';
import i18n from "@/i18n/index"
import VueAMap from "vue-amap"; // 引入插件

import Start from "@/views/start/Start.vue";
import Guide from "@/views/start/Guide.vue";
import Protocol from "@/views/login/Protocol.vue";
import Login from "@/views/login/Login.vue";
import Home from "@/views/home/Home.vue";
import Certification from "@/views/certification/Certification.vue";
import RealNameAuthentication from "@/views/certification/Real-NameAuthentication.vue";
import CourierCertification from "@/views/certification/CourierCertification.vue";


/*
* 查询包裹，附近智能柜，扫码登柜
* */
import ParcelTracking from "@/views/parceltracking/ParcelTracking.vue"
import ParcelTrackingDetail from '@/views/parceltracking/ParcelTrackingDetail.vue'
import SmartlockersNearby from '@/views/smartlockersnearby/SmartlockersNearby.vue'
import MyFavoritesSmartCabinets from "@/views/myfavoritessmartcabinets/MyFavoritesSmartCabinets.vue"
import EditMyFavoritesSmartCabinets from "@/views/editMyFavoritesSmartCabinets/EditMyFavoritesSmartCabinets.vue"
import SmartLockerDetails from "@/views/smartlockerdetails/SmartLockerDetails.vue"


/**
 * 设置->账号与安全
 */
import SetUp from "@/views/Setup/SetUp.vue";
import AccountSafe from "@/views/Setup/AccountSafe/AccountSafe.vue";
import Captcha from "@/views/Setup/AccountSafe/Captcha.vue";
import NewPhone from "@/views/Setup/AccountSafe/NewPhone.vue";
import NewPassword from "@/views/Setup/AccountSafe/NewPassword.vue";
import NewPayPassword from "@/views/Setup/AccountSafe/NewPayPassword.vue";
import Logout from "@/views/Setup/AccountSafe/Logout.vue";
import Agreement from "@/views/Setup/AccountSafe/Agreement.vue";
import Right from "@/views/Setup/AccountSafe/Right.vue";


/**
 * 设置->新消息的通知
 */
import Message from "@/views/Setup/Message/Message.vue"
// 隐私管理
import Privacy from "@/views/Setup/privacy/privacy.vue"
import PrivacySummary from "@/views/Setup/privacy/PrivacySummary.vue"
// 关于我们
import AboutUs from "@/views/Setup/aboutUs/AboutUs.vue"
// 意见反馈
import Feedback from "@/views/Setup/feedback/Feedback.vue"
import MyFeedback from "@/views/Setup/feedback/MyFeedback.vue"
import Supplemental from "@/views/Setup/feedback/Supplemental.vue"
/**
 * 跳转到我的页面
 */
import My from "@/views/Setup/My.vue"
import Lang from "@/views/Setup/Lang/Lang.vue"

import ResetPassword from "@/views/login/ResetPassword.vue"

import SetPassword from "@/views/login/SetPassword.vue";
import PasswordLogin from "@/views/login/PasswordLogin.vue";

/**
 * 帮助中心
 */
import HelpCenter from "@/views/Setup/helpCenter/HelpCenter.vue"
import CustomerPhone from "@/views/Setup/helpCenter/CustomerPhone.vue"
/**
 * 客服中心
 */
import Customer from "@/views/Setup/customer/Customer.vue"
import QrCore from "@/views/Setup/QrCore.vue"
import Map from "@/views/Setup/Map.vue"

// 我的账号 我的余额
import Mine from "@/views/Mine/Mine.vue";
import MyAccount from "@/views/Mine/myaccount/MyAccount.vue";
import MyWallet from "@/views/Mine/mywallet/MyWallet.vue";
import detail from "@/views/Mine/mywallet/detail.vue";
import DetailParticulars from "@/views/Mine/mywallet/DetailParticulars.vue";
import BillParticulars from "@/views/Mine/mywallet/BillParticulars.vue";
import bill from "@/views/Mine/mywallet/bill.vue";
import BankCard from "@/views/Mine/mywallet/BankCard.vue";
import AddBankCard from "@/views/Mine/mywallet/AddBankCard.vue";
import AddCheck from "@/views/Mine/mywallet/AddCheck.vue";
import verification from "@/views/Mine/mywallet/verification.vue";
import TopUp from "@/views/Mine/mywallet/TopUp.vue";
import TopUpRecord from "@/views/Mine/mywallet/TopUpRecord.vue";
import TopUpDetail from "@/views/Mine/mywallet/TopUpDetail.vue";
import TopUpHint from "@/views/Mine/mywallet/TopUpHint.vue";
import Withdraw from "@/views/Mine/mywallet/Withdraw.vue";
import WithdrawHint from "@/views/Mine/mywallet/WithdrawHint.vue";
import WithdrawRecord from "@/views/Mine/mywallet/WithdrawRecord.vue";
import WithdrawDetail from "@/views/Mine/mywallet/WithdrawDetail.vue";

import CourierCertificationInformation from "@/views/certification/CourierCertificationInformation.vue";
import RealNameInformation from "@/views/certification/RealNameInformation.vue";
import Alipay from "@/views/Mine/mywallet/Alipay.vue";


/*消息中心*/
import NewsCenter from "@/views/news_center/NewsCenter.vue";
import SystemInformation from "@/views/news_center/SystemInformation.vue";
import EventNotification from "@/views/news_center/EventNotification.vue";
import DeliveryInformation from "@/views/news_center/DeliveryInformation.vue";
import CollectionInformation from "@/views/news_center/CollectionInformation.vue";
import DeliveryMessageDetails from "@/views/news_center/DeliveryMessageDetails.vue";
import EventNotificationDetails from "@/views/news_center/EventNotificationDetails.vue";
import SystemMessageDetails from "@/views/news_center/SystemMessageDetails.vue";


/*我的派件*/
import Index from "@/views/index/Index.vue";
import Detail from "@/views/index/Detail.vue";
import Recording from "@/views/index/Recording.vue";
import alipay from "@/views/Mine/mywallet/Alipay.vue";

Vue.config.productionTip = false
Vue.use(VueRouter);
Vue.use(Vant);
Vue.use(VueAMap); // 使用插件

var router = new VueRouter({
    routes: [
        {path: '/', redirect: '/start/Start'},
        {path: '/start/Start', component: Start},
        {path: '/start/Guide', component: Guide},
        {path: '/login/Protocol', component: Protocol},
        {path: '/login/Login', component: Login},
        {path: '/login/PasswordLogin', component: PasswordLogin},
        {path: '/home/Home', component: Home},
        {path: '/Mine/Mine', component: Mine},
        {path: '/parceltracking/ParcelTracking', component: ParcelTracking},
        // 重置密码
        {path: '/resetPassword', component: ResetPassword},
        // 设置新密码
        {path: '/setPassword', component: SetPassword},

        // 点击设置跳转页面
        {path: '/setUp', component: SetUp},
        // 账号与安全页面
        {path: '/accountSafe', component: AccountSafe},
        // 账号安全验证码验证界面
        {path: '/captcha', component: Captcha},
        // 新手机号修改页面
        {path: '/newPhone', component: NewPhone},
        // 新手机号修改页面
        {path: '/newPassword', component: NewPassword},
        // 新支付修改页面
        {path: '/newPayPassword', component: NewPayPassword},
        // 注销账号页面
        {path: '/logout', component: Logout},
        // 注销协议页面
        {path: '/agreement', component: Agreement},
        // 注销完成页面
        {path: '/right', component: Right},
        // 注销完成页面
        {path: '/my', component: My},
        // 语言设置
        {path: '/lang', component: Lang},
        //
        {path: '/mine', component: Mine},
        // 我的账号
        {path: '/myaccount', component: MyAccount},
        // 我的钱包
        {path: '/mywallet', component: MyWallet},
        // 余额明细
        {path: '/detail', component: detail},
        // 余额明细详情信息
        {path: '/detailparticulars', component: DetailParticulars},
        // 账单详情信息
        {path: '/billparticulars', component: BillParticulars},
        // 账单
        {path: '/bill', component: bill},
        // 银行卡
        {path: '/bankcard', component: BankCard},
        // 添加银行卡
        {path: '/addbankcard', component: AddBankCard},
        // 添加支票
        {path: '/addcheck', component: AddCheck},
        // 验证
        {path: '/verification', component: verification},
        // 充值
        {path: '/topup', component: TopUp},
        // 充值记录
        {path: '/topuprecord', component: TopUpRecord},
        // 充值详情
        {path: '/topupdetail', component: TopUpDetail},
        // 充值提示
        {path: '/topuphint', component: TopUpHint},
        // 提现
        {path: '/withdraw', component: Withdraw},
        // 提现提示
        {path: '/withdrawhint', component: WithdrawHint},
        // 提现记录
        {path: '/withdrawrecord', component: WithdrawRecord},
        // 提现详情
        {path: '/withdrawdetail', component: WithdrawDetail},
        // 支付页面
        {path: '/alipay', component: Alipay},

        //文件上传
        {path: '/certification', component: Certification},
        {path: '/realNameAuthentication', component: RealNameAuthentication},
        {path: '/courierCertification', component: CourierCertification},
        {path: '/courierCertificationInformation', component: CourierCertificationInformation},
        {path: '/realNameInformation', component: RealNameInformation},
        // 消息中心
        {path: '/newsCenter', component: NewsCenter},
        {path: '/systemInformation', component: SystemInformation},
        {path: '/eventNotification', component: EventNotification},
        {path: '/deliveryInformation', component: DeliveryInformation},
        {path: '/collectionInformation', component: CollectionInformation},
        {path: '/deliveryMessageDetails', component: DeliveryMessageDetails},
        {path: '/eventNotificationDetails', component: EventNotificationDetails},
        {path: '/systemMessageDetails', component: SystemMessageDetails},

        /*
        查询包裹，附近智能柜，扫码登柜
         */
        /* 包裹查询详情 */
        {path: '/parceltracking/ParcelTrackingDetail', component: ParcelTrackingDetail},
        /*  附近智能柜 */
        {path: '/smartlockersnearby/SmartlockersNearby', component: SmartlockersNearby},
        /*  我的收藏 */
        {path: '/myfavoritessmartcabinets/MyFavoritesSmartCabinets', component: MyFavoritesSmartCabinets},
        /*  编辑我的收藏夹 */
        {path: '/editMyFavoritesSmartCabinets/EditMyFavoritesSmartCabinets', component: EditMyFavoritesSmartCabinets},
        /*  智能柜详情  */
        {path: '/smartlockerdetails/SmartLockerDetails', component: SmartLockerDetails},

        /**
         * 设置->新消息的通知
         */
        {path: '/message', component: Message},
        // 隐私设置
        {path: '/privacy', component: Privacy},
        // 隐私政策摘要
        {path: '/privacySummary', component: PrivacySummary},
        // 关于我们
        {path: '/aboutUs', component: AboutUs},
        // 意见反馈
        {path: '/feedback', component: Feedback},
        // 我的反馈
        {path: '/myFeedback', component: MyFeedback},
        // 补充反馈
        {path: '/supplemental', component: Supplemental},
        /**
         * 帮助中心，客服电话
         */
        {path: '/helpCenter', component: HelpCenter},
        {path: '/customerPhone', component: CustomerPhone},
        /**
         * 在线客服
         */
        {path: '/customer', component: Customer},
        {path: '/qrCore', component: QrCore},
        {path: '/map', component: Map},
        /**
         * 我的派件
         */
        {path: '/index/Index', component: Index},
        {path: '/index/Detail', component: Detail},
        {path: '/index/Recording', component: Recording}
    ]
})


// 高德地图配置
VueAMap.initAMapApiLoader({ // 初始化插件
    key: "44f0ea578d8162bef107b44536080f71", // 高德key，自己官网申请即可，这里是我申请的
    plugin: ["AMap.Geocoder"],  // 插件集合，这里只有一个定位功能，所以就只放一个AMap.Geocoder
    uiVersion: "1.0.11", // 不加会报错，加上吧
    v: "1.4.15", // 不加也不会影响，顺手加上吧
});

new Vue({
    render: h => h(App),
    router,
    i18n
}).$mount('#app')
